/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package src.convertisseur;

import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilderFactory;
import org.jdom.Element;

/**
 *
 * @author krishen
 */
public class ParserGraphML implements Runnable{

    File ftp; // File to parse
    File fileOut; // File to Create

    public ParserGraphML(File file, File fileOUT) throws IOException {
        this.ftp = file;
	this.fileOut = fileOUT;
    }

    public void run() {
        try {
            this.ParserGraphML();
	}
	catch (Exception e) {
            e.printStackTrace();
            Resume result = Resume.getInstance();
            result.add("ParserToTOTEM","procedure run had some problems : "+e);
	}
    }

    public void ParserGraphML() throws IOException {
        
        Element domain;
        
        try {
            org.jdom.input.SAXBuilder builder = new org.jdom.input.SAXBuilder();
            builder.setIgnoringElementContentWhitespace(true);
            org.jdom.Document document = builder.build(ftp);

            // A implementer le parsing GraphML -> format grephML prefuse
				
            
        }catch(Exception ex){
        
        }

    }



}


